package org.dromara.business.service;

import org.dromara.business.domain.BusinessConfigType;
import org.dromara.business.domain.vo.BusinessConfigTypeVo;
import org.dromara.business.domain.bo.BusinessConfigTypeBo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 业务参数配置类型Service接口
 *
 * @author zj
 * @date 2024-06-28
 */
public interface BusinessConfigTypeService extends IService<BusinessConfigType> {

    /**
     * 查询业务参数配置类型
     */
    BusinessConfigTypeVo queryById(Long configTypeId);

    /**
     * 查询业务参数配置类型列表
     */
    TableDataInfo<BusinessConfigTypeVo> queryPageList(BusinessConfigTypeBo bo, PageQuery pageQuery);

    /**
     * 查询业务参数配置类型列表
     */
    List<BusinessConfigTypeVo> queryList(BusinessConfigTypeBo bo);

    /**
     * 新增业务参数配置类型
     */
    Boolean insertByBo(BusinessConfigTypeBo bo);

    /**
     * 修改业务参数配置类型
     */
    Boolean updateByBo(BusinessConfigTypeBo bo);

    /**
     * 校验并批量删除业务参数配置类型信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 同步超级管理员的业务参数配置到当前租户
     */
    int syncConfig();
}
